﻿

/****** Object:  Table [dbo].[t_sale]    Script Date: 2018/12/25 9:23:00 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[t_sale](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[good_name] [nvarchar](1000) NULL,
	[good_num] [int] NULL,
	[sale_num] [int] NULL,
	[version] [int] NULL,
PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[t_sale] ADD  DEFAULT ((0)) FOR [good_num]
GO


